<div class="form" style="padding:5px;">
    <?php
    $form = $this->beginWidget('GxActiveForm', array(
        'id' => 'users-form',
        'enableAjaxValidation' => true,
    ));
    ?>

    <p class="note">
        <?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
    </p>

    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'username'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'username', array('maxlength' => 50)); ?>
            <?php echo $form->error($model, 'username'); ?>
        </div><!-- row -->
    </div>

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'password'); ?>
        </div>
        <div class="rowControl"><?php echo $form->passwordField($model, 'password', array('maxlength' => 128)); ?>
            <?php echo $form->error($model, 'password'); ?>
        </div><!-- row -->
    </div>
    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'confirm_password'); ?>
        </div>
        <div class="rowControl"><?php echo $form->passwordField($model, 'confirm_password', array('maxlength' => 128)); ?>
            <?php echo $form->error($model, 'confirm_password'); ?>
        </div><!-- row -->
    </div>
<?php /*echo CHtml::activeLabel($model, 'validaion');*/ ?>
<?php /*$this->widget('common.extensions.recaptcha.EReCaptcha', 
   array($model, 'attribute'=>'validacion',
         'theme'=>'red', 'language'=>'es_ES', 
         'publicKey'=>'6Lc-2uYSAAAAAA5tut-AZ92SwNv2YXeF--slPW0e'));*/ ?>
<?php /*echo CHtml::error($user, 'validaion');*/ ?>
    <div class="row">
        <?php
        echo GxHtml::submitButton(Yii::t('app', 'Save'));
        $this->endWidget();
        ?>
    </div>
    <?php $this->widget('application.modules.hybridauth.widgets.renderProviders'); ?>

</div>
<!-- form -->
